package org.to_zero.ssm.sdm.entity.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

public class BaseModel {
    @JsonIgnore
    private Integer page;

    @JsonIgnore
    private Integer limit;

    @JsonIgnore
    private Date beginTime;

    @JsonIgnore
    private Date endTime;

    public Integer getPage() {
        return (page == null || limit == null) ? null : (page - 1) * limit;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }


}
